package cn.demoncat.util.quartz.constant;

/**
 * 消息常量
 * 
 * @author 延晓磊
 *
 * @since 2017年9月12日
 */
public final class JobMsg {

	// 任务模式
	public static final String TRIGGER_TYPE_ERROR = "任务触发模式错误";
	// 任务查找
	public static final String NOT_FOUND = "任务不存在：jobInfo.id = {}";
	public static final String NOT_EXISTS = "任务不存在：group = {}, name = {}";
	public static final String CHECK_ERROR = "任务检查失败：group = {}, name = {}";
	public static final String REPEAT = "任务重复：group = {}, name = {}";
	public static final String JOB_STATUS_ERROR = "获取任务状态失败：";
	public static final String JOB_CHECK_ERROR = "任务检查失败";
	public static final String JOB_NOT_FOUND_ERROR = "任务不存在";
	public static final String JOB_REPEAT_ERROR = "任务已存在";
	
	public static final String JOB_NOT_START = "任务未启动";
	// 任务恢复
	public static final String RESUME_SUCCESS = "任务恢复成功：group = {}, name = {}";
	public static final String RESUME_FAIL = "任务恢复失败：group = {}, name = {}";
	public static final String JOB_RESUME_ERROR = "任务恢复失败";
	// 任务暂停
	public static final String PAUSE_SUCCESS = "任务暂停成功：group = {}, name = {}";
	public static final String PAUSE_FAIL = "任务暂停失败：group = {}, name = {}";
	public static final String JOB_PAUSE_ERROR = "任务暂停失败";
	// 任务结束
	public static final String REMOVE_SUCCESS = "任务结束成功：group = {}, name = {}";
	public static final String REMOVE_FAIL = "任务结束失败：group = {}, name = {}";
	public static final String JOB_REMOVE_ERROR = "任务结束失败";
	// 任务启动
	public static final String ADD_SUCCESS = "任务启动成功：jobDetail = {}, cronTrigger = {}";
	public static final String ADD_FAIL = "任务启动失败：group = {}, name = {}";
	public static final String JOB_ADD_ERROR = "任务启动失败";
	// 任务执行
	public static final String TRIGGER_SUCCESS = "手动触发任务成功：group = {}, name = {}";
	public static final String TRIGGER_ERROR = "手动触发任务失败：group = {}, name = {}";
	public static final String JOB_RUN_ERROR = "手动触发任务失败";
	// 任务回调
	public static final String CALLBACK_SUCCESS = "接收任务执行回调成功：group = {}, name = {}";
	public static final String CALLBACK_SEND_SUCCESS = "发送任务执行回调成功：";
	public static final String CALLBACK_SEND_ERROR = "发送任务执行回调失败：";
	// 子任务
	public static final String TRIGGER_NEXT_SUCCESS = "触发子任务成功：parentJob = {}, parentLog = {}, job = {}";
	public static final String TRIGGER_NEXT_ERROR = "触发子任务失败：parentJob = {}, parentLog = {}, job = {}";
	// 任务监控
	public static final String TRIGGER_INIT_SUCCESS = "任务初始化成功：JobGroup = {}, JobId = {}, JobLogId = {}";
	public static final String EXE_SUCCESS = "任务执行成功：JobGroup = {}, JobId = {}, JobLogId = {}";
	public static final String TRIGGER_FAIL = "任务触发失败：JobGroup = {}, JobId = {}, JobLogId = {}";
	public static final String EXE_FAIL = "任务执行失败：JobGroup = {}, JobId = {}, JobLogId = {}";
	public static final String MONITOR_FAIL = "任务监控出错";
	public static final String MONITOR_STOP = "任务监控线程正常停止";
	// 发送任务触发消息到MQ
	public static final String TRIGGER_MQ_SUCCESS = "发送任务触发消息到MQ成功：JobGroup = {}, JobId = {}, JobLogId = {}";
	public static final String TRIGGER_MQ_ERROR = "发送任务触发消息到MQ失败：JobGroup = {}, JobId = {}, JobLogId = {}";
	// 执行器收到MQ消息
	public static final String RUN_SUCCESS = "任务执行成功：JobLogId = {}";
	public static final String RUN_FAIL = "任务执行失败：JobLogId = {}";
	public static final String HANDLER_NOT_FOUND = "任务处理器不存在：Handler = {}";
	public static final String RECEIVE_TRIGGER_SUCCESS = "收到任务触发消息：";
	// 任务调度中心接收程序调度
	public static final String RECEIVE_APP_JOB_MQ = "收到程序任务调度消息：";
	public static final String RECEIVE_APP_JOB_REQUEST = "收到程序任务调度请求：";
	// 程序发送调度到任务调度中心
	public static final String SEND_APP_JOB_SUCCESS = "发送任务调度消息到任务调度中心成功：";
	public static final String SEND_APP_JOB_ERROR = "发送任务调度消息到任务调度中心失败：";
}
